

Vue.component2('a_1_0_3_1_0', {  
    template: `
    <div class="a_1_0_3_1_0_container">  
        <div class="a_1_0_3_1_0_image_wrapper">  
            <img :src="data.show_imgsrc" alt="Image">  
        </div>  
        <div class="a_1_0_3_1_0_span_wrapper">  
            <span>{{data.show_text1}}</span>  
        </div>  
        <div class="a_1_0_3_1_0_span_wrapper">
            <span>{{data.show_text2}}</span>  
        </div>  
    </div>
`,  
  data() {
      return {
        refresh:"1",
        data:{
            test:false,
            show_imgsrc:"",
            show_text1:"",
            show_text2:"",
        }
      };
  },
  watch:{
  },
  methods:{
    refresh_func:function(e){
        this.refresh=this.refresh=="2"?"1":"2";
    },
    handleMouseEnter() {  
        if(this.hover_flag==false){
            this.hover_flag=true; 
            this.style2=this.style2+`color:${this.data.hovercolor};`;
        }
      },  
      handleMouseLeave() {  
        if(this.hover_flag==true){
            this.hover_flag=false; 
            let style2="";
            for (let key in this.style){
                style2=style2+`${key}:${this.style[key]};`
            }
            this.style2=style2;
        }
      } ,
    setstyle2:function(name,value){
        this.style[name]=value;
        let style2="";
        for (let key in this.style){
            style2=style2+`${key}:${this.style[key]};`
        }
        this.style2=style2;
    },
    handleclick:function(){
try{this.data.click()}
catch{}
    }
  },
  mounted:function(){
    if(_this.deepcopy_data.test==true){
        _this.data.show_imgsrc="python.png";
        _this.data.show_text1="用户1-基础组件-控件";
        _this.data.show_text2="文本显示框(a0)";

    }
} }
);
// 
